<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>mockjs的使用</title>
    <link rel="stylesheet" href="../lib/element-plus/index.css">

</head>
<body>

<div id="app">

    <el-table :data="employees">

        <el-table-column  prop="name" label="员工姓名"></el-table-column>
        <el-table-column prop="dept.name" label="部门"></el-table-column>


    </el-table>

</div>

</body>
<script src="../lib/vue.global.js"></script>
<script src="../lib/element-plus/index.full.js"></script>
<script src="../lib/mock.js"></script>
<script src="../mock/employees.js"></script>
<script>




     var app=Vue.createApp({
         data:function (){
             return {
                 employees:employees.list
             }
         }
     });
     app.use(ElementPlus).mount('#app')

</script>
</html>